FROM registry.cn-beijing.aliyuncs.com/zilaiye/jre:8u221
WORKDIR /
COPY staff-api-web/target/staff-api-web-4.2.1-RELEASE.jar /app.jar
ENV SPRING_PROFILES_ACTIVE local
ENTRYPOINT [ "sh", "-c", "java -Djava.security.egd=file:/dev/./urandom -jar /app.jar --spring.config.location=file:/config --spring.profiles.active=$SPRING_PROFILES_ACTIVE"]
EXPOSE 8080